/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "定价流程主表",TableName = "cw_djlc_djzb")]
    public partial class cw_djlc_djzb:BaseEntity
    {
        /// <summary>
       ///定价流程主表
       /// </summary>
       [Key]
       [Display(Name ="定价流程主表")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid cw_djlc_djzb_id { get; set; }

       /// <summary>
       ///定价流程编号
       /// </summary>
       [Display(Name ="定价流程编号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       public string cw_djlc_code { get; set; }

       /// <summary>
       ///旧的BOM编号
       /// </summary>
       [Display(Name ="旧的BOM编号")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string oldbomnumber { get; set; }

       /// <summary>
       ///原始物料号
       /// </summary>
       [Display(Name ="原始物料号")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string oldmaterialnum { get; set; }

       /// <summary>
       ///新的BOM编号
       /// </summary>
       [Display(Name ="新的BOM编号")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string newbomnumber { get; set; }

       /// <summary>
       ///新的物料号
       /// </summary>
       [Display(Name ="新的物料号")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string newmaterialnum { get; set; }

       /// <summary>
       ///序号
       /// </summary>
       [Display(Name ="序号")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string serialnum { get; set; }

       /// <summary>
       ///类别
       /// </summary>
       [Display(Name ="类别")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string category { get; set; }

       /// <summary>
       ///车型
       /// </summary>
       [Display(Name ="车型")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string vehicletype { get; set; }

       /// <summary>
       ///驱动形式
       /// </summary>
       [Display(Name ="驱动形式")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string drivetype { get; set; }

       /// <summary>
       ///燃料
       /// </summary>
       [Display(Name ="燃料")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string fuel { get; set; }

       /// <summary>
       ///驾驶室
       /// </summary>
       [Display(Name ="驾驶室")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string pilothouse { get; set; }

       /// <summary>
       ///发动机型号
       /// </summary>
       [Display(Name ="发动机型号")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string enginetype { get; set; }

       /// <summary>
       ///变速器型号
       /// </summary>
       [Display(Name ="变速器型号")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string transmissiontype { get; set; }

       /// <summary>
       ///步骤状态
       /// </summary>
       [Display(Name ="步骤状态")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? stepid { get; set; }

       /// <summary>
       ///附件
       /// </summary>
       [Display(Name ="附件")]
       [MaxLength(500)]
       [Column(TypeName="varchar(500)")]
       [Editable(true)]
       public string attachmenturl { get; set; }

       /// <summary>
       ///流程类型
       /// </summary>
       [Display(Name ="流程类型")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? processtype { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ModifyDate { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string Modifier { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string Creator { get; set; }

       /// <summary>
       ///销售渠道
       /// </summary>
       [Display(Name ="销售渠道")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string salechannel { get; set; }

       /// <summary>
       ///销售关键词
       /// </summary>
       [Display(Name ="销售关键词")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       public Guid? cw_djlc_cwzb_id { get; set; }

       /// <summary>
       ///边际率
       /// </summary>
       [Display(Name ="边际率")]
       [DisplayFormat(DataFormatString="16,6")]
       [Column(TypeName="decimal")]
       public decimal? marginalrate { get; set; }

       /// <summary>
       ///标准出厂价
       /// </summary>
       [Display(Name ="标准出厂价")]
       [DisplayFormat(DataFormatString="16,6")]
       [Column(TypeName="decimal")]
       public decimal? factoryprice { get; set; }

       /// <summary>
       ///是否已同步价格 0：未同步，1：已同步
       /// </summary>
       [Display(Name ="是否已同步价格 0：未同步，1：已同步")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int synchronizationpricestatus { get; set; }

       /// <summary>
       ///是否已同步BOM 0：未同步，1：已同步
       /// </summary>
       [Display(Name ="是否已同步BOM 0：未同步，1：已同步")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int synchronizationbomstatus { get; set; }

       /// <summary>
       ///物料类型
       /// </summary>
       [Display(Name ="物料类型")]
       [Column(TypeName="tinyint")]
       public byte? bomtype { get; set; }

       /// <summary>
       ///渠道定价规则uuid
       /// </summary>
       [Display(Name ="渠道定价规则uuid")]
       [Column(TypeName="uniqueidentifier")]
       public Guid? cw_djlc_qddjgz_id { get; set; }

       
    }
}